from django.contrib import admin
from print_request.models import Request


class RequestAdmin(admin.ModelAdmin):
  fieldsets = [
      (None              , {'fields': ['name']}),
      ('Extension'       , {'fields': ['extension']}),
      ('Date information', {'fields': ['pub_date'], 'classes': ['collapse']}),
      ]

  list_display  = ('name', 'extension', 'pub_date', 'was_published_recently')
  list_filter   = ['pub_date']
  search_fields = ['name']

admin.site.register(Request, RequestAdmin)

# vim:tabstop=2:softtabstop=2:shiftwidth=2
